package com.wzy.spring2.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "db")
@Data
public class DbProperties {

    private String userName;

    private String url;

    private String password;
}
